package test;

import factory.NewsDao;
import factory.NewsServiceImpl;
import factory.SimpleDaoFactory;

public class Demo2 {
    public static void main(String[] args) {
        NewsDao dao = SimpleDaoFactory.getInstance("mysql");
        NewsServiceImpl service = new NewsServiceImpl();
        service.setDao(dao);
    }

}
